package general;

class ReadEvent
{

    #if neko
    public static function extended(inp : neko.io.Input)
    {
            var len = inp.readInt32();
            return inp.read(len);
    #else flash9
    public static function extended(sock : flash.net.Socket)
    {
            var len = sock.readInt();
            return sock.readUTFBytes(len);

    #end
    }

}